/****************************************************************************
** Meta object code from reading C++ file 'Generator.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.15.2)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include <memory>
#include "../src/JSON/Generator.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'Generator.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.2. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_JSON__JSONWorker_t {
    QByteArrayData data[7];
    char stringdata0[61];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_JSON__JSONWorker_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_JSON__JSONWorker_t qt_meta_stringdata_JSON__JSONWorker = {
    {
QT_MOC_LITERAL(0, 0, 16), // "JSON::JSONWorker"
QT_MOC_LITERAL(1, 17, 8), // "finished"
QT_MOC_LITERAL(2, 26, 0), // ""
QT_MOC_LITERAL(3, 27, 9), // "jsonReady"
QT_MOC_LITERAL(4, 37, 10), // "JFI_Object"
QT_MOC_LITERAL(5, 48, 4), // "info"
QT_MOC_LITERAL(6, 53, 7) // "process"

    },
    "JSON::JSONWorker\0finished\0\0jsonReady\0"
    "JFI_Object\0info\0process"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_JSON__JSONWorker[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
       3,   14, // methods
       0,    0, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       2,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    0,   29,    2, 0x06 /* Public */,
       3,    1,   30,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       6,    0,   33,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 4,    5,

 // slots: parameters
    QMetaType::Void,

       0        // eod
};

void JSON::JSONWorker::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<JSONWorker *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->finished(); break;
        case 1: _t->jsonReady((*reinterpret_cast< const JFI_Object(*)>(_a[1]))); break;
        case 2: _t->process(); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 1:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< JFI_Object >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (JSONWorker::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&JSONWorker::finished)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (JSONWorker::*)(const JFI_Object & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&JSONWorker::jsonReady)) {
                *result = 1;
                return;
            }
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject JSON::JSONWorker::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_meta_stringdata_JSON__JSONWorker.data,
    qt_meta_data_JSON__JSONWorker,
    qt_static_metacall,
    nullptr,
    nullptr
} };


const QMetaObject *JSON::JSONWorker::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *JSON::JSONWorker::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_JSON__JSONWorker.stringdata0))
        return static_cast<void*>(this);
    return QObject::qt_metacast(_clname);
}

int JSON::JSONWorker::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 3)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 3;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 3)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 3;
    }
    return _id;
}

// SIGNAL 0
void JSON::JSONWorker::finished()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void JSON::JSONWorker::jsonReady(const JFI_Object & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}
struct qt_meta_stringdata_JSON__Generator_t {
    QByteArrayData data[26];
    char stringdata0[279];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_JSON__Generator_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_JSON__Generator_t qt_meta_stringdata_JSON__Generator = {
    {
QT_MOC_LITERAL(0, 0, 15), // "JSON::Generator"
QT_MOC_LITERAL(1, 16, 18), // "jsonFileMapChanged"
QT_MOC_LITERAL(2, 35, 0), // ""
QT_MOC_LITERAL(3, 36, 20), // "operationModeChanged"
QT_MOC_LITERAL(4, 57, 11), // "jsonChanged"
QT_MOC_LITERAL(5, 69, 10), // "JFI_Object"
QT_MOC_LITERAL(6, 80, 4), // "info"
QT_MOC_LITERAL(7, 85, 11), // "loadJsonMap"
QT_MOC_LITERAL(8, 97, 16), // "setOperationMode"
QT_MOC_LITERAL(9, 114, 13), // "OperationMode"
QT_MOC_LITERAL(10, 128, 4), // "mode"
QT_MOC_LITERAL(11, 133, 4), // "path"
QT_MOC_LITERAL(12, 138, 6), // "silent"
QT_MOC_LITERAL(13, 145, 12), // "readSettings"
QT_MOC_LITERAL(14, 158, 7), // "loadJFI"
QT_MOC_LITERAL(15, 166, 13), // "writeSettings"
QT_MOC_LITERAL(16, 180, 8), // "loadJSON"
QT_MOC_LITERAL(17, 189, 4), // "json"
QT_MOC_LITERAL(18, 194, 5), // "reset"
QT_MOC_LITERAL(19, 200, 8), // "readData"
QT_MOC_LITERAL(20, 209, 4), // "data"
QT_MOC_LITERAL(21, 214, 15), // "jsonMapFilename"
QT_MOC_LITERAL(22, 230, 15), // "jsonMapFilepath"
QT_MOC_LITERAL(23, 246, 13), // "operationMode"
QT_MOC_LITERAL(24, 260, 7), // "kManual"
QT_MOC_LITERAL(25, 268, 10) // "kAutomatic"

    },
    "JSON::Generator\0jsonFileMapChanged\0\0"
    "operationModeChanged\0jsonChanged\0"
    "JFI_Object\0info\0loadJsonMap\0"
    "setOperationMode\0OperationMode\0mode\0"
    "path\0silent\0readSettings\0loadJFI\0"
    "writeSettings\0loadJSON\0json\0reset\0"
    "readData\0data\0jsonMapFilename\0"
    "jsonMapFilepath\0operationMode\0kManual\0"
    "kAutomatic"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_JSON__Generator[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      13,   14, // methods
       3,  110, // properties
       1,  122, // enums/sets
       0,    0, // constructors
       0,       // flags
       3,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    0,   79,    2, 0x06 /* Public */,
       3,    0,   80,    2, 0x06 /* Public */,
       4,    1,   81,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       7,    0,   84,    2, 0x0a /* Public */,
       8,    1,   85,    2, 0x0a /* Public */,
       7,    2,   88,    2, 0x0a /* Public */,
       7,    1,   93,    2, 0x2a /* Public | MethodCloned */,
      13,    0,   96,    2, 0x0a /* Public */,
      14,    1,   97,    2, 0x0a /* Public */,
      15,    1,  100,    2, 0x0a /* Public */,
      16,    1,  103,    2, 0x0a /* Public */,
      18,    0,  106,    2, 0x08 /* Private */,
      19,    1,  107,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 5,    6,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 9,   10,
    QMetaType::Void, QMetaType::QString, QMetaType::Bool,   11,   12,
    QMetaType::Void, QMetaType::QString,   11,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 5,    6,
    QMetaType::Void, QMetaType::QString,   11,
    QMetaType::Void, QMetaType::QJsonDocument,   17,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QByteArray,   20,

 // properties: name, type, flags
      21, QMetaType::QString, 0x00495001,
      22, QMetaType::QString, 0x00495001,
      23, 0x80000000 | 9, 0x0049510b,

 // properties: notify_signal_id
       0,
       0,
       1,

 // enums: name, alias, flags, count, data
       9,    9, 0x0,    2,  127,

 // enum data: key, value
      24, uint(JSON::Generator::kManual),
      25, uint(JSON::Generator::kAutomatic),

       0        // eod
};

void JSON::Generator::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<Generator *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->jsonFileMapChanged(); break;
        case 1: _t->operationModeChanged(); break;
        case 2: _t->jsonChanged((*reinterpret_cast< const JFI_Object(*)>(_a[1]))); break;
        case 3: _t->loadJsonMap(); break;
        case 4: _t->setOperationMode((*reinterpret_cast< const OperationMode(*)>(_a[1]))); break;
        case 5: _t->loadJsonMap((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const bool(*)>(_a[2]))); break;
        case 6: _t->loadJsonMap((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 7: _t->readSettings(); break;
        case 8: _t->loadJFI((*reinterpret_cast< const JFI_Object(*)>(_a[1]))); break;
        case 9: _t->writeSettings((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 10: _t->loadJSON((*reinterpret_cast< const QJsonDocument(*)>(_a[1]))); break;
        case 11: _t->reset(); break;
        case 12: _t->readData((*reinterpret_cast< const QByteArray(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 2:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< JFI_Object >(); break;
            }
            break;
        case 8:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< JFI_Object >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (Generator::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Generator::jsonFileMapChanged)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (Generator::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Generator::operationModeChanged)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (Generator::*)(const JFI_Object & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Generator::jsonChanged)) {
                *result = 2;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<Generator *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QString*>(_v) = _t->jsonMapFilename(); break;
        case 1: *reinterpret_cast< QString*>(_v) = _t->jsonMapFilepath(); break;
        case 2: *reinterpret_cast< OperationMode*>(_v) = _t->operationMode(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        auto *_t = static_cast<Generator *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 2: _t->setOperationMode(*reinterpret_cast< OperationMode*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject JSON::Generator::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_meta_stringdata_JSON__Generator.data,
    qt_meta_data_JSON__Generator,
    qt_static_metacall,
    nullptr,
    nullptr
} };


const QMetaObject *JSON::Generator::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *JSON::Generator::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_JSON__Generator.stringdata0))
        return static_cast<void*>(this);
    return QObject::qt_metacast(_clname);
}

int JSON::Generator::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 13)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 13;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 13)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 13;
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 3;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

// SIGNAL 0
void JSON::Generator::jsonFileMapChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void JSON::Generator::operationModeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void JSON::Generator::jsonChanged(const JFI_Object & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
